using System.Text.Json.Serialization;
using JlPay.Sdk.Models;

namespace JlPay.Sdk.Models.Openmerch.Query
{
    /// <summary>
    /// 实名认证查询请求
    /// </summary>
    public class RealNameQueryRequest : OrgBaseRequest
    {
        /// <summary>
        /// API URL
        /// </summary>
        public const string API_URL = "/open/merch/access/realname/query";

        /// <summary>
        /// 查询类型
        /// </summary>
        [JsonPropertyName("query_type")]
        public string QueryType { get; set; } = "0";  // 0-申请单查询（默认），1-授权结果查询

        /// <summary>
        /// 渠道类型
        /// </summary>
        [JsonPropertyName("channel_type")]
        public string ChannelType { get; set; } = "00";  // 渠道类型，默认所有渠道

        /// <summary>
        /// 渠道类型枚举
        /// </summary>
        public static class ChannelTypeEnum
        {
            /// <summary>
            /// 所有渠道
            /// </summary>
            public const string ALL = "00";

            /// <summary>
            /// 微信
            /// </summary>
            public const string WECHAT = "01";

            /// <summary>
            /// 支付宝
            /// </summary>
            public const string ALIPAY = "02";
        }
    }
} 